const multer = require('@koa/multer')
const config = require('../../config')
const storage = config.multerStorage(multer)

//加载配置
const upload = multer({ storage: storage }).array('files')

module.exports = upload
